import request from '@/utils/request';
// 提现管理列表
export function withdrawList (params) {
  return request({
    url: 'v1/cash/list',
    method: 'get',
    params
  });
}
// 消费记录列表
export function payList (params) {
  return request({
    url: 'v1/cash/payList',
    method: 'get',
    params
  });
}
// 收入记录
export function incomeList (params) {
  return request({
    url: 'v1/cash/incomeList',
    method: 'get',
    params
  });
}

// 充值记录
export function rechargeList (params) {
  return request({
    url: 'v1/cash/rechargeList',
    method: 'get',
    params
  });
}
// 充值规则列表
export function chargeRuleList (params) {
  return request({
    url: 'v1/cash/chargeRuleList',
    method: 'get',
    params
  });
}

// 后台充值记录
export function backChargeList (params) {
  return request({
    url: 'v1/cash/backChargeList',
    method: 'get',
    params
  });
}
// 提现审核
export function editWithdraw (data) {
  return request({
    url: 'v1/cash/edit',
    method: 'post',
    data: data
  });
}
// 添加充值规则
export function chargeRuleAdd (data) {
  return request({
    url: 'v1/cash/chargeRuleAdd',
    method: 'post',
    data: data
  });
}
// 修改充值规则
export function chargeRuleEdit (data) {
  return request({
    url: 'v1/cash/chargeRuleEdit',
    method: 'post',
    data: data
  });
}
// 修改充值规则
export function chargeRuleDelete (data) {
  return request({
    url: 'v1/cash/chargeRuleDelete',
    method: 'post',
    data: data
  });
}

